# -*- coding: utf-8 -*-

from odoo_contrib.marshmallow import fields

from .base import ParserBase


class WechatUserParser(ParserBase):
    id = fields.Integer()
    name = fields.Str()
    # openid = fields.Str()
    # unionid = fields.Str()
    nickname = fields.Str()
    avatar = fields.Str()
    gender = fields.Integer()
    city = fields.Str()
    province = fields.Str()
    country = fields.Str()
    language = fields.Str()
    encrypted_data = fields.Str(data_key='encryptedData')
    iv = fields.Str()
